home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 2 / ETO Development Tools 2.iso / Tools - Objects / Installation Folder / 411 Install next >
Encoding:
Text File  |  1990-11-05  |  2.1 KB  |  78 lines  |  [TEXT/MPWi]

  1. #    M P W  4 1 1   I N S T A L L A T I O N   S C R I P T
  2. #
  3. #    Copyright Apple Computer, Inc. 1990 - All rights reserved.
  4. #    
  5. #
  6. #    This script is used to install MPW 411 files from the E.T.O. #2 distribution
  7. #    compact disk into the "MPW Folder" on the destination hard disk. 
  8. #
  9. #    Options: None
  10. #
  11. #    This script makes use of the following Shell variables:
  12. #
  13. #    {CDVolume}        - the name of the CD Distribution volume
  14. #
  15. #    {DestVolume}    - the name of the volume from which the Installer was launched
  16. #
  17. #    {MacAppFlag}    - flag indicating if MacApp is being installed (for MacApp 411)
  18. #
  19.  
  20. Set Exit 0
  21.  
  22. Set DestMPW        "{DestVolume}MPW Folder:"
  23. Set    Source411    "{CDVolume}Essentials:MPW 411:"
  24. Set    MacApp411    "{CDVolume}Essentials:MacApp Documentation:Class&Method Reference (411):"
  25.  
  26. # Copy the 411 User Startup script into the user's MPW Shell directory.
  27.     
  28. # First, disable the old UserStartup script if one exists.
  29.  
  30. If "`Exists -f "{DestMPW}UserStartup•~_Help_"`"
  31.     Rename -y "{DestMPW}UserStartup•~_Help_" "{DestMPW}UserStartup.~_Help_"
  32. End
  33.     
  34. Duplicate "{Source411}Tools:UserStartup•Help"     "{DestMPW}"
  35.  
  36. # Same thing with the get tool
  37.  
  38. If "`Exists -f "{DestMPW}Tools:Get"`"
  39.     Rename -y "{DestMPW}Tools:Get" "{DestMPW}Tools:Get.Old"
  40. End
  41.     
  42. Duplicate "{Source411}Tools:Get"     "{DestMPW}Tools:Get"
  43.  
  44. # Remove old help system files.
  45.  
  46. If "`Exists -d "{DestMPW}Help Folder"`"
  47.     Delete  -y "{DestMPW}Help Folder"
  48. End
  49.  
  50. NewFolder "{DestMPW}Help Folder"
  51.  
  52. # If requested, copy the entire 411 folder from the CD to the MPW folder
  53.  
  54. if "{411Option}" == "2"        ### copy all of the help files to the hard drive
  55.     Duplicate -y "{Source411}"        "{DestMPW}Help Files:"
  56.     
  57.     If "{MacAppFlag}" != "0"    ### copy the MacApp help files as well
  58.         Duplicate -y "{MacApp411}MacApp.411"        "{DestMPW}Help Files:"
  59.         Duplicate -y "{MacApp411}MacApp.411.index"    "{DestMPW}Help Files:"
  60.     End
  61. End
  62.     
  63.  
  64. # Setup the 411 directory.
  65.  
  66. Set HelpDirectory "{DestMPW}Help Folder:"
  67.     
  68. If not "`Exists -d "{HelpDirectory}"`"
  69.     NewFolder "{HelpDirectory}"
  70. End
  71.  
  72. If "{411Option}" == "2"
  73.     Echo "{DestMPW}Help Files:" > "{HelpDirectory}Help_Folder"
  74. Else
  75.     Echo "{Source411}Help Files" > "{HelpDirectory}Help_Folder"
  76. End  
  77.  
  78.